// 存放状态
const state = {
    rules: {
        usageAmount: [
            { required: true, message: "请输入使用面额", trigger: "blur" }
        ],
        addedRate: [{ required: true, message: "请输入增值比例", trigger: "blur" }],
        lifespan: [{ required: true, message: "请输入有效期(天)", trigger: "blur" }]
    }
};

// 更改state中状态的逻辑，同步操作
const mutations = {};

// 提交mutation，异步操作
const actions = {};

export default {
    namespaced: true,
    state,
    mutations,
    actions
};